package com.wuhuahe.learning.elastic.job.example;

import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;

public class MyElasticJob implements SimpleJob {

    @Override
    public void execute(ShardingContext shardingContext) {

        System.out.println(shardingContext.getJobName());
        System.out.println(shardingContext.getJobParameter());
        System.out.println(shardingContext.getShardingItem());
        System.out.println(shardingContext.getShardingTotalCount());
        System.out.println(shardingContext.getTaskId());

    }
}
